package bt08012014_toado;

public class ToaDo {
	private int x;
	private int y;
	
	public ToaDo (int x, int y){
		this.x = (int)x;
		this.y = (int)y;
	}
	public double khoangCachHaiToaDo (ToaDo p){
		double z = Math.sqrt(Math.pow(p.x - this.x,2) + Math.pow(p.y - this.y,2));
		return z;
	}
	public String toString(){
		return "(" + this.x +","+this.y+")";
	}

}
